<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<script>
			function run1(){
				alert("run1");
			}

			//两秒执行
			var id = setTimeout("run1()", 2000);
			// 取消一次性定时器
			// clearTimeout(id); 
		</script>
	</head>
	<body>
	</body>
</html>
